import { PORT1 } from "@/api/config/servicePort";
import Http from "@/api/index";

const baseUrl = PORT1 + "/system/common_phrase";
const cate = baseUrl + "/cate";
const con = baseUrl + "/con";

export const getCateList = () => {
  return Http.get(cate + "/list");
};

export const addCate = (params: any) => {
  return Http.post(cate + "/add", params);
};

export const editCate = (params: any) => {
  return Http.put(cate + "/edit", params);
};

export const deleteCate = (params: any) => {
  return Http.post(cate + "/delete", params);
};

export const getConList = (params: any) => {
  return Http.get(con + "/list", params);
};

export const addCon = (params: any) => {
  return Http.post(con + "/add", params);
};

export const editCon = (params: any) => {
  return Http.put(con + "/edit", params);
};

export const deleteCon = (params: any) => {
  return Http.post(con + "/delete", params);
};
